﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Video.ascx.vb" Inherits="FrontEnd_Control_News_Video" %>
<%@ Import Namespace="Cls_Common" %>

<div class="porlet-main">

    <!--title Intro -->
    <div class="row-titlemain">
        <div class="text-titlemain">
            <img src='<%=Maindomain + "FrontEnd/images/icon_intro.png" %>' border="0" align="absmiddle">
           <asp:HyperLink ID="hplTitle" runat="server">  </asp:HyperLink></div>
    </div>


<!-- box view news -->
<div class="text-content">
    <div class="links_views">
        <img src="<%=ResolveUrl("~/FrontEnd/images/icon_mail.gif")%>" alt="" width="18" height="18" align="absmiddle" />&nbsp;<a
            href="mailto:">Gửi Email</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="<%=ResolveUrl("~/FrontEnd/images/icon_print.gif")%>"
                alt="" width="18" height="18" align="absmiddle" />&nbsp;<a href="#" onclick="javascript:window.print()">In trang</a>
    </div>

         <div id="divContent" class="box_slideshow">
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                <asp:Panel ID="pnlVideoUpload" Visible="false" Width="100%" runat="server">
                    <script type="text/javascript">
                        $(function () {
                            $(".alejandro").click(function () {
                                var fileurl = $(this).attr("name");
                                var title = $(this).attr("innerHTML");

                                var newObjElement = '<embed width="300" height="300" flashvars="file=' + fileurl + '" allowfullscreen="true" allowscriptaccess="always" src="<%=PlayerUrl() %>" name="player2" id="player2" type="application/x-shockwave-flash">';
                                $("#divEmbededVideo").flash(newObjElement);
                            });
                        }); 
                    </script>
                    <div id="divEmbededVideo" style="padding-left: 10px; padding-top: 10px;">
                        <!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
                        <embed type="application/x-shockwave-flash" src="<%=PlayerUrl() %>" width="300" height="300"
                            style="undefined" id="player" name="player" bgcolor="#000000" quality="high"
                            allowfullscreen="true" allowscriptaccess="always" wmode="opaque" flashvars="file=<%=FileUrl() %>" />
                        <script type="text/javascript">
                            var so = new SWFObject(<%=PlayerUrl() %>, 'player', '300', '300', '9', '#000000');
                            so.addParam('allowfullscreen', 'true');
                            so.addParam('allowscriptaccess', 'always');
                            so.addParam('wmode', 'opaque');
                            so.addParam('flashvars', 'file=<%=FileUrl() %>');
                            so.write('preview');
                            swfobject.registerObject("FlashID");
                        </script>
                        <!-- END OF THE PLAYER EMBEDDING -->
                    </div>
                </asp:Panel>
                <asp:Panel ID="pnlYoutube" Visible="false" Width="100%" runat="server">
                    <div id="div1" class="videoshow">
                        <asp:Literal ID="ltrShow" runat="server"></asp:Literal>
                    </div>
                </asp:Panel>
            </div>

    <div class="border_bottom_news">
        
         <asp:Literal ID="ltrAuthor" runat="server"></asp:Literal>
        </div>
    <div class="label_othernews">
        <img src="<%=ResolveUrl("~/FrontEnd/images/icon-bai-dang.png")%>" border="0">
        CÁC BÀI VIẾT KHÁC</div>
    <div class="list-views">
        <ul>
            <asp:Repeater ID="rptRelation" runat="server">
                <ItemTemplate>
                    <li>
                        <asp:HyperLink ID="hplTitle" runat="server"></asp:HyperLink>
                        <asp:Label ID="lblDate" runat="server" Text=""></asp:Label>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
</div>
<!-- het box view news -->
</div>



